package com.zunke.shopmanager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/download")
public class DownloadController {


    @GetMapping("/dishesPhoto")
    public String downloadTemplate(@RequestParam("photo") String photo){
        return "redirect:" + photo;
    }

}
